package com.itlong.cloud.property.resource;

import com.itlong.cloud.paymenthub.IProjectAllowedCashWithdrawalStatisticsClient;
import com.itlong.cloud.property.service.IProjectAllowedCashWithdrawalStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      物业-统计项目可提现余额暴露接口
 * </desc>
 *
 * @createDate 2018/9/26
 */
@RestController
public class ProjectAllowedCashWithdrawalStatisticsResource implements IProjectAllowedCashWithdrawalStatisticsClient {

    @Autowired
    private IProjectAllowedCashWithdrawalStatisticsService iProjectAllowedCashWithdrawalStatisticsService;

    /**
     * <desc>
     *      统计项目可提现余额，只统计前一天
     * </desc>
     *
     * @author wangzhi
     * @createDate 2018/09/26
     */
    @Override
    @PostMapping(path = "/project/finance/statisticsAllowedCashWithdrawal")
    public void statisticsAllowedCashWithdrawal() throws Exception {
        iProjectAllowedCashWithdrawalStatisticsService.statisticsAllowedCashWithdrawal();
    }
}
